package com.k.kppcloud.modules.sdk.controller;

import com.k.kppcloud.modules.sdk.feign.admin.UserControllerFeign;
import com.k.kppcloud.modules.sdk.feign.admin.domain.UserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sdk/test")
public class TestController {
    @Autowired
    private UserControllerFeign userControllerFeign;

    @RequestMapping("/user/list")
    @ResponseBody
    public List<UserDTO> testUserList() {
        List<UserDTO> list = userControllerFeign.list();
        return list;
    }
}
